"use strict";
{
    let boy = {
        name: '李易峰',
        age: 35,
        cook: () => {
            console.log('会做蛋炒饭~~');
        }
    };
    let boy2 = {
        name: '王嘉尔',
        age: 29,
        car: '比亚迪',
        cook() {
            console.log('会做地三鲜~~');
        }
    };
    // implements 是 ES5 严格模式的保留字
    // implements 实现
    class Person {
        //构造器
        constructor(name, age, weight) {
            this.name = name;
            this.age = age;
            this.weight = weight;
        }
        cook() {
            console.log('我会做饭~~');
        }
        program() {
            console.log('我可以编程哦~~');
        }
    }
    //实例化对象
    let ikun = new Person('坤坤', 24, '130');
    ikun.program();
}
